//========encoding:utf-8=========
/*
 * @describe:  三目运算符
 * @author:mhao
 * @copyright:chinasoft.cn
 * @date:2020年2月24日   下午10:46:46
 */
package edu.chinasoft.service;

import java.util.List;

import org.apache.log4j.Logger;

import edu.chinasoft.dao.ProvinceDao;
import edu.chinasoft.dao.ProvinceDaoImp;
import edu.chinasoft.pojo.Province;

public class ProvinceServiceImp implements ProvinceService {
	private Logger logger = Logger.getLogger(ProvinceServiceImp.class);
	private ProvinceDao provinceDao = new ProvinceDaoImp();
	@Override
	public Province findCityByProvince(Province province) {
		logger.debug("ProvinceServiceImp>>>findCityByProvince  start ……");

		Province result = provinceDao.selectProviderCity(province);

		logger.debug("ProvinceServiceImp>>>findCityByProvince  end ……");

		return result;
	}

	@Override
	public List<Province>  findAllProvince(){
		logger.debug("ProvinceServiceImp>>>findAllProvince  start ……");
		List<Province> result = provinceDao.selectProvider();
		logger.debug("ProvinceServiceImp>>>findAllProvince  end ……");
		return result;
	}
	
}
